package com.showgood.beans.fight;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

import com.showgood.meta.Army;
import com.showgood.util.collect.Apair;

/**
 * Ұս
 * @author BianP
 *
 */
@Component
public class ArmyVsArmyFightService implements FightService<Army, Army> {
	private Logger logger = Logger.getLogger(getClass());

	@Override
	public void fight(Apair<Army, Army> context) {
		logger.info(String.format("Ұս: %s => %s", context.getAttacker()
				.getName(), context.getDefender().getName()));
	}
}
